package load;

import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;

public class Test {

  public static void main(String[] args)
      throws ClassNotFoundException, IllegalAccessException, InstantiationException {
    DiskClassLoader diskLoader = new DiskClassLoader("F:/Study-JavaCode/netty/");
    Class cls = diskLoader.loadClass("load.MqttTest");
    TestInf inf = (TestInf) cls.newInstance();

    ByteBuf byteBuf = Unpooled.buffer();
    byteBuf.writeInt(2);
    byteBuf.writeInt(4);

    System.out.println(inf.doContext(byteBuf));

  }
}
